package com.xiaobai.dao;

import com.xiaobai.pojo.StudentCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentCourseDao {

    int deleteByPrimaryKey(Integer id);

    int insert(StudentCourse record);

    int insertBasic(StudentCourse record);

    int insertSelective(StudentCourse record);

    StudentCourse selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StudentCourse record);

    int updateByPrimaryKeyWithBLOBs(StudentCourse record);

    int updateByPrimaryKey(StudentCourse record);

    int updateByStudentId(StudentCourse record);

    /**
     * 根据周和学号修改对应周的课程JSON数据
     */
    int updateByStudentIdZidingyi(StudentCourse record);

    String selectWeekByWeekAndStudentId(@Param("student_id") String student_id,@Param("week") Integer week);

    String selectWeekFormBasicCourse(@Param("student_id") String student_id,@Param("week") Integer week);

    int insertPiLiangChaRuCourse(List<StudentCourse> list);

    int insertBasicPiLiangChaRuCourse(List<StudentCourse> list);

    List<StudentCourse> getAllCourseListByStudentId(String student_id);

}